package icu.lyt0628;

import java.io.PrintStream;
import java.util.Scanner;

public class Append {

    public static void main(String[] args) {

        App app = new App();
        app.connect();

        Scanner scan = new Scanner(System.in);
        PrintStream o = System.out;

        o.println("Please input target file path:  ");
        String file = scan.nextLine();
        o.println("Please input content to append");
        String cont = scan.nextLine();
        o.println("location (head/tail(default))");
        String s = scan.nextLine();
        boolean t = s.contains("h");
        o.println("got it.");


        app.append(file, cont, t);

        o.println("OK");
        app.release();
    }
}
